using System;
using System.Data;
using System.Collections.Generic;
using ADOBase;

namespace eTMS.DAO{
	/********************************BEGIN TieuChiXetDuyetDAO****************************************/
	///<summary>
	/// <para>Author: Auto generated class by CSharp Code Generator v2.0</para>
	/// <para>Date:15/12/2011 45:04:18</para>
	/// <para>Class Name: TieuChiXetDuyetDAO</para>
	/// <para>Description: Class access to table TieuChiXetDuyet in database. Coder should'nt code here.</para>
	///</summary>

	
	public partial class TieuChiXetDuyetDAO : DAOBase<TieuChiXetDuyetEntity>{


		#region Select functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:15/12/2011 45:04:18</para>
		/// <para>Name: CreateSelectOneCommand</para>
		/// <para>Input: TieuChiXetDuyet_ID</para>
		/// <para>Output: IDbCommand</para>
		///</summary>
		protected IDbCommand CreateSelectOneCommand(int TieuChiXetDuyet_ID){
			string strSQL="SELECT  [TieuChiXetDuyet_ID],[TenTieuChiXetDuyet],[LoaiXetDuyet],[GhiChu],[NoiDung] FROM [TieuChiXetDuyet]  WHERE [TieuChiXetDuyet].[TieuChiXetDuyet_ID]=@TieuChiXetDuyet_ID";
			IDbCommand cmd=this.CreateCommand(strSQL);
			cmd.CommandType=CommandType.Text;
			this.CreateCommandParameter(cmd,"@TieuChiXetDuyet_ID",TieuChiXetDuyet_ID);



			return cmd;
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:15/12/2011 45:04:18</para>
		/// <para>Name: SelectOne</para>
		/// <para>Input: TieuChiXetDuyet_ID</para>
		/// <para>Output: TieuChiXetDuyetEntity</para>
		///</summary>
		public TieuChiXetDuyetEntity SelectOne(int TieuChiXetDuyet_ID){
			IDbCommand cmd=this.CreateSelectOneCommand(TieuChiXetDuyet_ID);
			return this.Select(cmd);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:15/12/2011 45:04:18</para>
		/// <para>Name: CreateSelectAllCommand</para>
		/// <para>Input: </para>
		/// <para>Output: IDbCommand</para>
		///</summary>
		protected IDbCommand CreateSelectAllCommand(){
			string strSQL="SELECT  [TieuChiXetDuyet_ID],[TenTieuChiXetDuyet],[LoaiXetDuyet],[GhiChu],[NoiDung] FROM [TieuChiXetDuyet] ";
			IDbCommand cmd=this.CreateCommand(strSQL);
			cmd.CommandType=CommandType.Text;
			return cmd;
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:15/12/2011 45:04:18</para>
		/// <para>Name: CreateSelectAllByKeyCommand</para>
		/// <para>Input: ColumnName,ColumnValue</para>
		/// <para>Output: IDbCommand</para>
		///</summary>
		protected IDbCommand CreateSelectAllByKeyCommand(string ColumnName,object Value){
			string strSQL="SELECT  [TieuChiXetDuyet_ID],[TenTieuChiXetDuyet],[LoaiXetDuyet],[GhiChu],[NoiDung] FROM [TieuChiXetDuyet]  WHERE [TieuChiXetDuyet].["+ColumnName+"]=@ColumnName";
			IDbCommand cmd=this.CreateCommand(strSQL);
			cmd.CommandType=CommandType.Text;
			this.CreateCommandParameter(cmd,"@ColumnName",Value);



			return cmd;
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:15/12/2011 45:04:18</para>
		/// <para>Name: SelectAll</para>
		/// <para>Input: </para>
		/// <para>Output: List of TieuChiXetDuyetEntity</para>
		///</summary>
		public List<TieuChiXetDuyetEntity> SelectAll(){
			IDbCommand cmd=this.CreateSelectAllCommand();
			return this.SelectList(cmd);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:15/12/2011 45:04:18</para>
		/// <para>Name: SelectAllDS</para>
		/// <para>Input: </para>
		/// <para>Output: DataSet</para>
		///</summary>
		public DataSet SelectAllDS(){
			IDbCommand cmd=this.CreateSelectAllCommand();
			return this.SelectDS(cmd);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:15/12/2011 45:04:18</para>
		/// <para>Name: CreateSelectAllFilterCommand</para>
		/// <para>Input: </para>
		/// <para>Output: IDbCommand</para>
		///</summary>
		protected IDbCommand CreateSelectAllFilterCommand(string strFilter){
			string strSQL="SELECT  [TieuChiXetDuyet_ID],[TenTieuChiXetDuyet],[LoaiXetDuyet],[GhiChu],[NoiDung] FROM [TieuChiXetDuyet]  WHERE "+RemoveInjection(strFilter);
			IDbCommand cmd=this.CreateCommand(strSQL);
			cmd.CommandType=CommandType.Text;
			return cmd;
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:15/12/2011 45:04:18</para>
		/// <para>Name: CreateSelectAllByKeyFilterCommand</para>
		/// <para>Input: ColumnName,ColumnValue</para>
		/// <para>Output: IDbCommand</para>
		///</summary>
		protected IDbCommand CreateSelectAllByKeyFilterCommand(string strFilter,string ColumnName,object Value){
			string strSQL="SELECT  [TieuChiXetDuyet_ID],[TenTieuChiXetDuyet],[LoaiXetDuyet],[GhiChu],[NoiDung] FROM [TieuChiXetDuyet]  WHERE [TieuChiXetDuyet].["+ColumnName+"]=@ColumnName AND "+RemoveInjection(strFilter);
			IDbCommand cmd=this.CreateCommand(strSQL);
			cmd.CommandType=CommandType.Text;
			this.CreateCommandParameter(cmd,"@ColumnName",Value);



			return cmd;
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:15/12/2011 45:04:18</para>
		/// <para>Name: SelectAll</para>
		/// <para>Input: </para>
		/// <para>Output: List of TieuChiXetDuyetEntity</para>
		///</summary>
		public List<TieuChiXetDuyetEntity> SelectAllFilter(string strFilter){
			IDbCommand cmd=this.CreateSelectAllFilterCommand(strFilter);
			return this.SelectList(cmd);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:15/12/2011 45:04:18</para>
		/// <para>Name: SelectAllDSFilter</para>
		/// <para>Input: </para>
		/// <para>Output: DataSet</para>
		///</summary>
		public DataSet SelectAllDSFilter(string strFilter){
			IDbCommand cmd=this.CreateSelectAllFilterCommand(strFilter);
			return this.SelectDS(cmd);
		}
		#endregion

		#region Insert functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:15/12/2011 45:04:18</para>
		/// <para>Name: CreateInsertCommand</para>
		/// <para>Input: TieuChiXetDuyetEntity</para>
		/// <para>Output: IDbCommand</para>
		///</summary>
		protected IDbCommand CreateInsertCommand(TieuChiXetDuyetEntity o){
			string strSQL="INSERT INTO [TieuChiXetDuyet]([TenTieuChiXetDuyet],[LoaiXetDuyet],[GhiChu],[NoiDung]) VALUES  (@TenTieuChiXetDuyet,@LoaiXetDuyet,@GhiChu,@NoiDung);SELECT  @@IDENTITY";
			IDbCommand cmd=this.CreateCommand(strSQL);
			cmd.CommandType=CommandType.Text;
			if(o.IsNullTenTieuChiXetDuyet)
				this.CreateCommandParameter(cmd,"@TenTieuChiXetDuyet",System.DBNull.Value);
			else
				this.CreateCommandParameter(cmd,"@TenTieuChiXetDuyet",o.TenTieuChiXetDuyet);

			if(o.IsNullLoaiXetDuyet)
				this.CreateCommandParameter(cmd,"@LoaiXetDuyet",System.DBNull.Value);
			else
				this.CreateCommandParameter(cmd,"@LoaiXetDuyet",o.LoaiXetDuyet);

			if(o.IsNullGhiChu)
				this.CreateCommandParameter(cmd,"@GhiChu",System.DBNull.Value);
			else
				this.CreateCommandParameter(cmd,"@GhiChu",o.GhiChu);

			if(o.IsNullNoiDung)
				this.CreateCommandParameter(cmd,"@NoiDung",System.DBNull.Value);
			else
				this.CreateCommandParameter(cmd,"@NoiDung",o.NoiDung);


			return cmd;
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:15/12/2011 45:04:18</para>
		/// <para>Name: Save</para>
		/// <para>Input: TieuChiXetDuyetEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Save(TieuChiXetDuyetEntity o){
			bool result=false;
			IDbCommand cmd=this.CreateInsertCommand(o);
			object id=this.ExecuteScalar(cmd,ref result);
			cmd.Dispose();
			try{
				o.TieuChiXetDuyet_ID=int.Parse(Convert.ToString(id));
			}
			catch{}
			return result;
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:15/12/2011 45:04:18</para>
		/// <para>Name: SaveList</para>
		/// <para>Input: List of TieuChiXetDuyetEntity</para>
		/// <para>Output: </para>
		///</summary>
		public void SaveList(List<TieuChiXetDuyetEntity>list){
			foreach(TieuChiXetDuyetEntity o in list){
				try{
					this.Save(o);
				}
				catch{
				}
			}
		}
		#endregion

		#region Update functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:15/12/2011 45:04:18</para>
		/// <para>Name: CreateUpdateCommand</para>
		/// <para>Input: TieuChiXetDuyetEntity</para>
		/// <para>Output: </para>
		///</summary>
		protected IDbCommand CreateUpdateCommand(TieuChiXetDuyetEntity o){
			string strSQL="UPDATE  [TieuChiXetDuyet] SET [TieuChiXetDuyet].[TenTieuChiXetDuyet]=@TenTieuChiXetDuyet,[TieuChiXetDuyet].[LoaiXetDuyet]=@LoaiXetDuyet,[TieuChiXetDuyet].[GhiChu]=@GhiChu,[TieuChiXetDuyet].[NoiDung]=@NoiDung WHERE [TieuChiXetDuyet].[TieuChiXetDuyet_ID]=@TieuChiXetDuyet_ID";
			IDbCommand cmd=this.CreateCommand(strSQL);
			cmd.CommandType=CommandType.Text;
			if(o.IsNullTieuChiXetDuyet_ID)
				this.CreateCommandParameter(cmd,"@TieuChiXetDuyet_ID",System.DBNull.Value);
			else
				this.CreateCommandParameter(cmd,"@TieuChiXetDuyet_ID",o.TieuChiXetDuyet_ID);

			if(o.IsNullTenTieuChiXetDuyet)
				this.CreateCommandParameter(cmd,"@TenTieuChiXetDuyet",System.DBNull.Value);
			else
				this.CreateCommandParameter(cmd,"@TenTieuChiXetDuyet",o.TenTieuChiXetDuyet);

			if(o.IsNullLoaiXetDuyet)
				this.CreateCommandParameter(cmd,"@LoaiXetDuyet",System.DBNull.Value);
			else
				this.CreateCommandParameter(cmd,"@LoaiXetDuyet",o.LoaiXetDuyet);

			if(o.IsNullGhiChu)
				this.CreateCommandParameter(cmd,"@GhiChu",System.DBNull.Value);
			else
				this.CreateCommandParameter(cmd,"@GhiChu",o.GhiChu);

			if(o.IsNullNoiDung)
				this.CreateCommandParameter(cmd,"@NoiDung",System.DBNull.Value);
			else
				this.CreateCommandParameter(cmd,"@NoiDung",o.NoiDung);


			return cmd;
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:15/12/2011 45:04:18</para>
		/// <para>Name: CreateUpdateFieldCommand</para>
		/// <para>Input: ColumnName,ColumnValue,TieuChiXetDuyet_ID</para>
		/// <para>Output: IDbCommand</para>
		///</summary>
		protected IDbCommand CreateUpdateFieldCommand(string ColumnName,object Value,int TieuChiXetDuyet_ID){
			string strSQL="UPDATE  [TieuChiXetDuyet] SET [TieuChiXetDuyet].["+ColumnName+"]=@ColumnName WHERE [TieuChiXetDuyet].[TieuChiXetDuyet_ID]=@TieuChiXetDuyet_ID";
			IDbCommand cmd=this.CreateCommand(strSQL);
			cmd.CommandType=CommandType.Text;
			this.CreateCommandParameter(cmd,"@TieuChiXetDuyet_ID",TieuChiXetDuyet_ID);



			this.CreateCommandParameter(cmd,"@ColumnName",Value);


			return cmd;
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:15/12/2011 45:04:18</para>
		/// <para>Name: Update</para>
		/// <para>Input: TieuChiXetDuyetEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Update(TieuChiXetDuyetEntity o){
			IDbCommand cmd=this.CreateUpdateCommand(o);
			bool result=this.ExcuteNoneQuery(cmd);
			cmd.Dispose();
			return result;
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:15/12/2011 45:04:18</para>
		/// <para>Name: UpdateList</para>
		/// <para>Input: List of TieuChiXetDuyetEntity</para>
		/// <para>Output: </para>
		///</summary>
		public void UpdateList(List<TieuChiXetDuyetEntity>list){
			foreach(TieuChiXetDuyetEntity o in list){
				try{
					this.Update(o);
				}
				catch{
				}
			}
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:15/12/2011 45:04:18</para>
		/// <para>Name: UpdateTenTieuChiXetDuyet</para>
		/// <para>Input: NewTenTieuChiXetDuyet,TieuChiXetDuyet_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateTenTieuChiXetDuyet(string NewTenTieuChiXetDuyet,int TieuChiXetDuyet_ID){
			IDbCommand cmd=this.CreateUpdateFieldCommand("TenTieuChiXetDuyet",NewTenTieuChiXetDuyet,TieuChiXetDuyet_ID);
			bool result=this.ExcuteNoneQuery(cmd);
			cmd.Dispose();
			return result;
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:15/12/2011 45:04:18</para>
		/// <para>Name: UpdateLoaiXetDuyet</para>
		/// <para>Input: NewLoaiXetDuyet,TieuChiXetDuyet_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateLoaiXetDuyet(Byte NewLoaiXetDuyet,int TieuChiXetDuyet_ID){
			IDbCommand cmd=this.CreateUpdateFieldCommand("LoaiXetDuyet",NewLoaiXetDuyet,TieuChiXetDuyet_ID);
			bool result=this.ExcuteNoneQuery(cmd);
			cmd.Dispose();
			return result;
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:15/12/2011 45:04:18</para>
		/// <para>Name: UpdateGhiChu</para>
		/// <para>Input: NewGhiChu,TieuChiXetDuyet_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateGhiChu(string NewGhiChu,int TieuChiXetDuyet_ID){
			IDbCommand cmd=this.CreateUpdateFieldCommand("GhiChu",NewGhiChu,TieuChiXetDuyet_ID);
			bool result=this.ExcuteNoneQuery(cmd);
			cmd.Dispose();
			return result;
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:15/12/2011 45:04:18</para>
		/// <para>Name: UpdateNoiDung</para>
		/// <para>Input: NewNoiDung,TieuChiXetDuyet_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateNoiDung(string NewNoiDung,int TieuChiXetDuyet_ID){
			IDbCommand cmd=this.CreateUpdateFieldCommand("NoiDung",NewNoiDung,TieuChiXetDuyet_ID);
			bool result=this.ExcuteNoneQuery(cmd);
			cmd.Dispose();
			return result;
		}
		#endregion

		#region Delete functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:15/12/2011 45:04:18</para>
		/// <para>Name: DeleteAllCommand</para>
		/// <para>Input: </para>
		/// <para>Output: IDbCommand</para>
		///</summary>
		protected IDbCommand CreateDeleteAllCommand(){
			string strSQL="DELETE   FROM [TieuChiXetDuyet]  ";
			IDbCommand cmd=this.CreateCommand(strSQL);
			cmd.CommandType=CommandType.Text;
			return cmd;
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:15/12/2011 45:04:18</para>
		/// <para>Name: DeleteCommand</para>
		/// <para>Input: TieuChiXetDuyetEntity</para>
		/// <para>Output: IDbCommand</para>
		///</summary>
		protected IDbCommand CreateDeleteCommand(TieuChiXetDuyetEntity o){
			string strSQL="DELETE   FROM [TieuChiXetDuyet]   WHERE [TieuChiXetDuyet].[TieuChiXetDuyet_ID]=@TieuChiXetDuyet_ID";
			IDbCommand cmd=this.CreateCommand(strSQL);
			cmd.CommandType=CommandType.Text;
			if(o.IsNullTieuChiXetDuyet_ID)
				this.CreateCommandParameter(cmd,"@TieuChiXetDuyet_ID",System.DBNull.Value);
			else
				this.CreateCommandParameter(cmd,"@TieuChiXetDuyet_ID",o.TieuChiXetDuyet_ID);


			return cmd;
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:15/12/2011 45:04:18</para>
		/// <para>Name: DeleteAll</para>
		/// <para>Input: </para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool DeleteAll(){
			IDbCommand cmd=this.CreateDeleteAllCommand();
			bool result=this.ExcuteNoneQuery(cmd);
			cmd.Dispose();
			return result;
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:15/12/2011 45:04:18</para>
		/// <para>Name: CreateDeleteByPrimaryKeyCommand</para>
		/// <para>Input: TieuChiXetDuyet_ID</para>
		/// <para>Output: IDbCommand</para>
		///</summary>
		protected IDbCommand CreateDeleteByPrimaryKeyCommand(int TieuChiXetDuyet_ID){
			string strSQL="DELETE   FROM [TieuChiXetDuyet]   WHERE [TieuChiXetDuyet].[TieuChiXetDuyet_ID]=@TieuChiXetDuyet_ID";
			IDbCommand cmd=this.CreateCommand(strSQL);
			cmd.CommandType=CommandType.Text;
			this.CreateCommandParameter(cmd,"@TieuChiXetDuyet_ID",TieuChiXetDuyet_ID);



			return cmd;
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:15/12/2011 45:04:18</para>
		/// <para>Name: CreateDeleteByKeyCommand</para>
		/// <para>Input: ColumnName , ColumnValue</para>
		/// <para>Output: IDbCommand</para>
		///</summary>
		protected IDbCommand CreateDeleteByKeyCommand(string ColumnName,object Value){
			string strSQL="DELETE   FROM [TieuChiXetDuyet]   WHERE [TieuChiXetDuyet].["+ColumnName+"]=@ColumnName";
			IDbCommand cmd=this.CreateCommand(strSQL);
			cmd.CommandType=CommandType.Text;
			this.CreateCommandParameter(cmd,"@ColumnName",Value);



			return cmd;
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:15/12/2011 45:04:18</para>
		/// <para>Name: Delete</para>
		/// <para>Input: TieuChiXetDuyetEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Delete(TieuChiXetDuyetEntity o){
			IDbCommand cmd=this.CreateDeleteCommand(o);
			bool result=this.ExcuteNoneQuery(cmd);
			cmd.Dispose();
			return result;
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:15/12/2011 45:04:18</para>
		/// <para>Name: DeleteByID</para>
		/// <para>Input: TieuChiXetDuyet_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool DeleteByID(int TieuChiXetDuyet_ID){
			IDbCommand cmd=this.CreateDeleteByPrimaryKeyCommand(TieuChiXetDuyet_ID);
			bool result=this.ExcuteNoneQuery(cmd);
			cmd.Dispose();
			return result;
		}
		#endregion

		#region Select,delete by TieuChiXetDuyet_ID functions
		#endregion

		#region MapObject functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:15/12/2011 45:04:18</para>
		/// <para>Name: MapObject</para>
		/// <para>Input: IDataReader</para>
		/// <para>Output: TieuChiXetDuyetEntity</para>
		///</summary>
		protected override TieuChiXetDuyetEntity MapObject(IDataReader r){
			TieuChiXetDuyetEntity entity = new TieuChiXetDuyetEntity();
			try{
				if(r.FieldCount>0){
					try
					{
						int ordinal = r.GetOrdinal("TieuChiXetDuyet_ID");
						if (!r.IsDBNull(ordinal)) entity.TieuChiXetDuyet_ID = ((int)(r.GetValue(ordinal)));
					}
					catch{}
					try
					{
						int ordinal = r.GetOrdinal("TenTieuChiXetDuyet");
						if (!r.IsDBNull(ordinal)) entity.TenTieuChiXetDuyet = ((string)(r.GetValue(ordinal)));
					}
					catch{}
					try
					{
						int ordinal = r.GetOrdinal("LoaiXetDuyet");
						if (!r.IsDBNull(ordinal)) entity.LoaiXetDuyet = ((Byte)(r.GetValue(ordinal)));
					}
					catch{}
					try
					{
						int ordinal = r.GetOrdinal("GhiChu");
						if (!r.IsDBNull(ordinal)) entity.GhiChu = ((string)(r.GetValue(ordinal)));
					}
					catch{}
					try
					{
						int ordinal = r.GetOrdinal("NoiDung");
						if (!r.IsDBNull(ordinal)) entity.NoiDung = ((string)(r.GetValue(ordinal)));
					}
					catch{}
					return entity;
				}
			}catch{}
			return null;
		}
		#endregion
	}
	/*****************************************************************************************************/
	/**********************************END TieuChiXetDuyetDAOBase*****************************************/
	/*****************************************************************************************************/
}

